/*
 * Created on Jun 21, 2004
 */
package com.scalar.chiptrack.operations.reports;

import java.util.ArrayList;
import java.util.LinkedHashMap;

import com.scalar.chiptrack.utils.StringUtils;

/**
 * @author Ravikanth
**/
public class WipFlushByDate
{
	private String partNumber = null;
	private String vendor = null;
	private String lotNumber = null;
	
	private int week1Qty = 0;
	private int week2Qty = 0;
	private int week3Qty = 0;
	private int week4Qty = 0;
	private int week5Qty = 0;
	private int week6Qty = 0;
	private int week7Qty = 0;
	private int week8Qty = 0;
	private int week9Qty = 0;
	private int week10Qty = 0;
	private int week11Qty = 0;
	private int week12Qty = 0;
	private int week13Qty = 0;
	private int week14Qty = 0;
	private int week15Qty = 0;
	private int week16Qty = 0;
	private int week17Qty = 0;
	private int week18Qty = 0;
	private int week19Qty = 0;
	private int week20Qty = 0;
	private int week21Qty = 0;
	private int week22Qty = 0;
	private int week23Qty = 0;
	private int week24Qty = 0;
	private int week25Qty = 0;
	private int week26Qty = 0;
	
	private int total = 0;
	
	private int productId = 0;
	private int lotId = 0;
	private LinkedHashMap childMap = null;
	private ArrayList products = null;
    /**
     * @return
     */
    public LinkedHashMap getChildMap()
    {
        return childMap;
    }

    /**
     * @return
     */
    public int getLotId()
    {
        return lotId;
    }

    /**
     * @return
     */
    public String getLotNumber()
    {
        return lotNumber;
    }

    /**
     * @return
     */
    public String getPartNumber()
    {
        return partNumber;
    }

    /**
     * @return
     */
    public int getProductId()
    {
        return productId;
    }

    /**
     * @return
     */
    public ArrayList getProducts()
    {
        return products;
    }

    /**
     * @return
     */
    public int getTotal()
    {
        return total;
    }

    /**
     * @return
     */
    public String getVendor()
    {
        return vendor;
    }

    /**
     * @return
     */
    public int getWeek10Qty()
    {
        return week10Qty;
    }

    /**
     * @return
     */
    public int getWeek11Qty()
    {
        return week11Qty;
    }

    /**
     * @return
     */
    public int getWeek12Qty()
    {
        return week12Qty;
    }

    /**
     * @return
     */
    public int getWeek13Qty()
    {
        return week13Qty;
    }

    /**
     * @return
     */
    public int getWeek1Qty()
    {
        return week1Qty;
    }

    /**
     * @return
     */
    public int getWeek2Qty()
    {
        return week2Qty;
    }

    /**
     * @return
     */
    public int getWeek3Qty()
    {
        return week3Qty;
    }

    /**
     * @return
     */
    public int getWeek4Qty()
    {
        return week4Qty;
    }

    /**
     * @return
     */
    public int getWeek5Qty()
    {
        return week5Qty;
    }

    /**
     * @return
     */
    public int getWeek6Qty()
    {
        return week6Qty;
    }

    /**
     * @return
     */
    public int getWeek7Qty()
    {
        return week7Qty;
    }

    /**
     * @return
     */
    public int getWeek8Qty()
    {
        return week8Qty;
    }

    /**
     * @return
     */
    public int getWeek9Qty()
    {
        return week9Qty;
    }

    /**
     * @param map
     */
    public void setChildMap(LinkedHashMap map)
    {
        childMap = map;
    }

    /**
     * @param i
     */
    public void setLotId(int i)
    {
        lotId = i;
    }

    /**
     * @param string
     */
    public void setLotNumber(String string)
    {
        lotNumber = string;
    }

    /**
     * @param string
     */
    public void setPartNumber(String string)
    {
        partNumber = string;
    }

    /**
     * @param i
     */
    public void setProductId(int i)
    {
        productId = i;
    }

    /**
     * @param list
     */
    public void setProducts(ArrayList list)
    {
        products = list;
    }

    /**
     * @param i
     */
    public void setTotal(int i)
    {
        total = i;
    }

    /**
     * @param string
     */
    public void setVendor(String string)
    {
        vendor = string;
    }

    /**
     * @param i
     */
    public void setWeek10Qty(int i)
    {
        week10Qty = i;
    }

    /**
     * @param i
     */
    public void setWeek11Qty(int i)
    {
        week11Qty = i;
    }

    /**
     * @param i
     */
    public void setWeek12Qty(int i)
    {
        week12Qty = i;
    }

    /**
     * @param i
     */
    public void setWeek13Qty(int i)
    {
        week13Qty = i;
    }

    /**
     * @param i
     */
    public void setWeek1Qty(int i)
    {
        week1Qty = i;
    }

    /**
     * @param i
     */
    public void setWeek2Qty(int i)
    {
        week2Qty = i;
    }

    /**
     * @param i
     */
    public void setWeek3Qty(int i)
    {
        week3Qty = i;
    }

    /**
     * @param i
     */
    public void setWeek4Qty(int i)
    {
        week4Qty = i;
    }

    /**
     * @param i
     */
    public void setWeek5Qty(int i)
    {
        week5Qty = i;
    }

    /**
     * @param i
     */
    public void setWeek6Qty(int i)
    {
        week6Qty = i;
    }

    /**
     * @param i
     */
    public void setWeek7Qty(int i)
    {
        week7Qty = i;
    }

    /**
     * @param i
     */
    public void setWeek8Qty(int i)
    {
        week8Qty = i;
    }

    /**
     * @param i
     */
    public void setWeek9Qty(int i)
    {
        week9Qty = i;
    }

    // Added by Basha (06/24/2004)
    public String getFormattedWeek1Qty(){
        return StringUtils.getUSNumberFormat(week1Qty);
    }
    public String getFormattedWeek2Qty(){
        return StringUtils.getUSNumberFormat(week2Qty);
    }
    public String getFormattedWeek3Qty(){
        return StringUtils.getUSNumberFormat(week3Qty);
    }
    public String getFormattedWeek4Qty(){
        return StringUtils.getUSNumberFormat(week4Qty);
    }
    public String getFormattedWeek5Qty(){
        return StringUtils.getUSNumberFormat(week5Qty);
    }
    public String getFormattedWeek6Qty(){
        return StringUtils.getUSNumberFormat(week6Qty);
    }
    public String getFormattedWeek7Qty(){
        return StringUtils.getUSNumberFormat(week7Qty);
    }
    public String getFormattedWeek8Qty(){
        return StringUtils.getUSNumberFormat(week8Qty);
    }
    public String getFormattedWeek9Qty(){
        return StringUtils.getUSNumberFormat(week9Qty);
    }
    public String getFormattedWeek10Qty(){
        return StringUtils.getUSNumberFormat(week10Qty);
    }
    public String getFormattedWeek11Qty(){
        return StringUtils.getUSNumberFormat(week11Qty);
    }
    public String getFormattedWeek12Qty(){
        return StringUtils.getUSNumberFormat(week12Qty);
    }
    public String getFormattedWeek13Qty(){
        return StringUtils.getUSNumberFormat(week13Qty);
    }
	public String getFormattedWeek14Qty(){
		return StringUtils.getUSNumberFormat(week14Qty);
	}
	public String getFormattedWeek15Qty(){
		return StringUtils.getUSNumberFormat(week15Qty);
	}
	public String getFormattedWeek16Qty(){
		return StringUtils.getUSNumberFormat(week16Qty);
	}
	public String getFormattedWeek17Qty(){
		return StringUtils.getUSNumberFormat(week17Qty);
	}
	public String getFormattedWeek18Qty(){
		return StringUtils.getUSNumberFormat(week18Qty);
	}
	public String getFormattedWeek19Qty(){
		return StringUtils.getUSNumberFormat(week19Qty);
	}
	public String getFormattedWeek20Qty(){
		return StringUtils.getUSNumberFormat(week20Qty);
	}
	public String getFormattedWeek21Qty(){
		return StringUtils.getUSNumberFormat(week21Qty);
	}
	public String getFormattedWeek22Qty(){
		return StringUtils.getUSNumberFormat(week22Qty);
	}
	public String getFormattedWeek23Qty(){
		return StringUtils.getUSNumberFormat(week23Qty);
	}
	public String getFormattedWeek24Qty(){
		return StringUtils.getUSNumberFormat(week24Qty);
	}
	public String getFormattedWeek25Qty(){
		return StringUtils.getUSNumberFormat(week25Qty);
	}
	public String getFormattedWeek26Qty(){
		return StringUtils.getUSNumberFormat(week26Qty);
	}
	
	public String[] getFormattedAllWeekQty()
	{
		String[] allWeekQty = new String[26];
		
		allWeekQty[ 0 ] = StringUtils.getUSNumberFormat(week1Qty);
		allWeekQty[ 1 ] = StringUtils.getUSNumberFormat(week2Qty);
		allWeekQty[ 2 ] = StringUtils.getUSNumberFormat(week3Qty);
		allWeekQty[ 3 ] = StringUtils.getUSNumberFormat(week4Qty);
		allWeekQty[ 4 ] = StringUtils.getUSNumberFormat(week5Qty);
		allWeekQty[ 5 ] = StringUtils.getUSNumberFormat(week6Qty);
		allWeekQty[ 6 ] = StringUtils.getUSNumberFormat(week7Qty);
		allWeekQty[ 7 ] = StringUtils.getUSNumberFormat(week8Qty);
		allWeekQty[ 8 ] = StringUtils.getUSNumberFormat(week9Qty);
		allWeekQty[ 9 ] = StringUtils.getUSNumberFormat(week10Qty);
		allWeekQty[ 10 ] = StringUtils.getUSNumberFormat(week11Qty);
		allWeekQty[ 11 ] = StringUtils.getUSNumberFormat(week12Qty);
		allWeekQty[ 12 ] = StringUtils.getUSNumberFormat(week13Qty);
		allWeekQty[ 13 ] = StringUtils.getUSNumberFormat(week14Qty);
		allWeekQty[ 14 ] = StringUtils.getUSNumberFormat(week15Qty);
		allWeekQty[ 15 ] = StringUtils.getUSNumberFormat(week16Qty);
		allWeekQty[ 16 ] = StringUtils.getUSNumberFormat(week17Qty);
		allWeekQty[ 17 ] = StringUtils.getUSNumberFormat(week18Qty);
		allWeekQty[ 18 ] = StringUtils.getUSNumberFormat(week19Qty);
		allWeekQty[ 19 ] = StringUtils.getUSNumberFormat(week20Qty);
		allWeekQty[ 20 ] = StringUtils.getUSNumberFormat(week21Qty);
		allWeekQty[ 21 ] = StringUtils.getUSNumberFormat(week22Qty);
		allWeekQty[ 22 ] = StringUtils.getUSNumberFormat(week23Qty);
		allWeekQty[ 23 ] = StringUtils.getUSNumberFormat(week24Qty);
		allWeekQty[ 24 ] = StringUtils.getUSNumberFormat(week25Qty);
		allWeekQty[ 25 ] = StringUtils.getUSNumberFormat(week26Qty);
		
		return allWeekQty;
	}
	
	public int[] getAllWeekQty()
	{
		int[] allWeekQty = new int[26];
		
		allWeekQty[ 0 ] = week1Qty;
		allWeekQty[ 1 ] = week2Qty;
		allWeekQty[ 2 ] = week3Qty;
		allWeekQty[ 3 ] = week4Qty;
		allWeekQty[ 4 ] = week5Qty;
		allWeekQty[ 5 ] = week6Qty;
		allWeekQty[ 6 ] = week7Qty;
		allWeekQty[ 7 ] = week8Qty;
		allWeekQty[ 8 ] = week9Qty;
		allWeekQty[ 9 ] = week10Qty;
		allWeekQty[ 10 ] = week11Qty;
		allWeekQty[ 11 ] = week12Qty;
		allWeekQty[ 12 ] = week13Qty;
		allWeekQty[ 13 ] = week14Qty;
		allWeekQty[ 14 ] = week15Qty;
		allWeekQty[ 15 ] = week16Qty;
		allWeekQty[ 16 ] = week17Qty;
		allWeekQty[ 17 ] = week18Qty;
		allWeekQty[ 18 ] = week19Qty;
		allWeekQty[ 19 ] = week20Qty;
		allWeekQty[ 20 ] = week21Qty;
		allWeekQty[ 21 ] = week22Qty;
		allWeekQty[ 22 ] = week23Qty;
		allWeekQty[ 23 ] = week24Qty;
		allWeekQty[ 24 ] = week25Qty;
		allWeekQty[ 25 ] = week26Qty;
		
		return allWeekQty;
	}


	public String toString()
	{	
		StringBuffer buf = new StringBuffer();
		buf.append (" Part Number : ").append ( partNumber );
		buf.append (" Vendor: ").append ( vendor );
		buf.append (" Lot: ").append ( lotNumber );
		buf.append (" Week1: ").append ( week1Qty );
		buf.append (" Week2: ").append (week2Qty);
		buf.append (" Week3: ").append (week3Qty);
		buf.append (" Week4: ").append (week4Qty);
		buf.append (" Week5: ").append (week5Qty);
		buf.append (" Week6: ").append (week6Qty);
		buf.append (" Week7: ").append( week7Qty );
		buf.append (" Week8: ").append( week8Qty );
		buf.append (" Week9: ").append( week9Qty );
		buf.append (" Week10: ").append ( week10Qty );
		buf.append (" Week11: ").append ( week11Qty );
		buf.append (" Week12: ").append ( week12Qty );
		buf.append (" Week13: ").append ( week13Qty );
		buf.append (" Total: ").append( total ).append (" ]\n");
		return buf.toString();
	}
	/**
	 * @return
	 */
	public int getWeek14Qty()
	{
		return week14Qty;
	}

	/**
	 * @return
	 */
	public int getWeek15Qty()
	{
		return week15Qty;
	}

	/**
	 * @return
	 */
	public int getWeek16Qty()
	{
		return week16Qty;
	}

	/**
	 * @return
	 */
	public int getWeek17Qty()
	{
		return week17Qty;
	}

	/**
	 * @return
	 */
	public int getWeek18Qty()
	{
		return week18Qty;
	}

	/**
	 * @return
	 */
	public int getWeek19Qty()
	{
		return week19Qty;
	}

	/**
	 * @return
	 */
	public int getWeek20Qty()
	{
		return week20Qty;
	}

	/**
	 * @return
	 */
	public int getWeek21Qty()
	{
		return week21Qty;
	}

	/**
	 * @return
	 */
	public int getWeek22Qty()
	{
		return week22Qty;
	}

	/**
	 * @return
	 */
	public int getWeek23Qty()
	{
		return week23Qty;
	}

	/**
	 * @return
	 */
	public int getWeek24Qty()
	{
		return week24Qty;
	}

	/**
	 * @return
	 */
	public int getWeek25Qty()
	{
		return week25Qty;
	}

	/**
	 * @param i
	 */
	public void setWeek14Qty(int i)
	{
		week14Qty = i;
	}

	/**
	 * @param i
	 */
	public void setWeek15Qty(int i)
	{
		week15Qty = i;
	}

	/**
	 * @param i
	 */
	public void setWeek16Qty(int i)
	{
		week16Qty = i;
	}

	/**
	 * @param i
	 */
	public void setWeek17Qty(int i)
	{
		week17Qty = i;
	}

	/**
	 * @param i
	 */
	public void setWeek18Qty(int i)
	{
		week18Qty = i;
	}

	/**
	 * @param i
	 */
	public void setWeek19Qty(int i)
	{
		week19Qty = i;
	}

	/**
	 * @param i
	 */
	public void setWeek20Qty(int i)
	{
		week20Qty = i;
	}

	/**
	 * @param i
	 */
	public void setWeek21Qty(int i)
	{
		week21Qty = i;
	}

	/**
	 * @param i
	 */
	public void setWeek22Qty(int i)
	{
		week22Qty = i;
	}

	/**
	 * @param i
	 */
	public void setWeek23Qty(int i)
	{
		week23Qty = i;
	}

	/**
	 * @param i
	 */
	public void setWeek24Qty(int i)
	{
		week24Qty = i;
	}

	/**
	 * @param i
	 */
	public void setWeek25Qty(int i)
	{
		week25Qty = i;
	}

	/**
	 * @return
	 */
	public int getWeek26Qty()
	{
		return week26Qty;
	}

	/**
	 * @param i
	 */
	public void setWeek26Qty(int i)
	{
		week26Qty = i;
	}

}